﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GlobalReference/GlobalReferenceMaster.master"
    AutoEventWireup="true" CodeBehind="WorkFlowDocumentForm.aspx.cs" Inherits="Eassets.UI.GlobalReference.WorkFlowDocumentForm" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/Components/FlashMessage.ascx" TagName="FlashMessage" TagPrefix="osm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <script src="../styles/Common.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="formtitle">
        <asp:Label ID="labelFormTitle" runat="server" Text="Work Flow Documents"></asp:Label>
    </div>
    <table width="100%" height="5px">
        <tbody>
            <tr>
                <td align="right">
                    <osm:FlashMessage ID="FlashMessage1" runat="server" />
                    &nbsp;&nbsp;&nbsp;
                </td>
            </tr>
        </tbody>
    </table>
    <fieldset>
        <ul class="form">
            <li>
                <div class="gridfield">
                    <asp:GridView ID="gridViewWorkFlowDocument" runat="server" Caption="Work Flow Documents"
                        CssClass="ColStyle" EmptyDataText="No data to display" AutoGenerateColumns="false"
                        OnSelectedIndexChanged="gridViewWorkFlowDocument_SelectedIndexChanged" OnRowCreated="gridViewWorkFlowDocument_RowCreated">
                        <RowStyle CssClass="RowStyle" />
                        <AlternatingRowStyle CssClass="AltRowStyle" />
                        <HeaderStyle CssClass="GridHeader" />
                        <Columns>
                            <asp:CommandField ShowSelectButton="True" ItemStyle-Width="20" ButtonType="Image"
                                SelectImageUrl="~/styles/images/Select_icon_button.gif" />
                            <asp:BoundField ItemStyle-Width="0" HeaderStyle-Width="0" DataField="WorkFlowDocumentId" />
                            <asp:BoundField HeaderText="Code" DataField="Code" />
                            <asp:BoundField HeaderText="Description" DataField="Description" />
                        </Columns>
                        <SelectedRowStyle CssClass="SelectedRowStyle" />
                    </asp:GridView>
                    <asp:HiddenField ID="hiddenFieldWorkFlowDocumentCodeId" runat="server" />
                </div>
            </li>
            <li>
                <br />
            </li>
        </ul>
        <ul class="form">
            <li>
                <div class="formlable">
                    <asp:Label ID="labelWorkFlowDocumentCode" runat="server" Text="Work Flow Document Code"
                        CssClass="legendlabel_size2"></asp:Label>
                    <asp:TextBox ID="textBoxWorkFlowDocumentCode" runat="server" Enabled="True" CssClass="textbox_size2"
                        MaxLength="8" Width="100px" TabIndex="1"></asp:TextBox>
                    <font color="#FF0000">*</font>
                </div>
            </li>
            <li>
                <div class="formlable">
                    <asp:Label ID="labelDescription" runat="server" Text="Description" CssClass="legendlabel_size2"></asp:Label>
                    <asp:TextBox ID="textBoxDescription" runat="server" Width="300px" MaxLength="50"
                        TabIndex="2" Enabled="True" CssClass="textbox_size2"></asp:TextBox>
                    <font color="#FF0000">*</font>
                </div>
            </li>
        </ul>
    </fieldset>
    <br />
    <fieldset>
        <ul class="form">
            <li>
                <div>
                    <table>
                        <tr>
                            <td class="style4">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Button ID="buttonAdd" runat="server" Text="Add" CssClass="buttonstyle" OnClick="ButtonAdd_Click" />
                                <asp:Button ID="buttonModify" runat="server" Text="Modify" CssClass="buttonstyle"
                                    OnClick="ButtonModify_Click" />
                                <asp:Button ID="buttonDelete" runat="server" Text="Delete" CssClass="buttonstyle"
                                    OnClick="ButtonDelete_Click" />
                            </td>
                            <td>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Button ID="buttonSave" runat="server" Text="Save" CssClass="buttonstyle" OnClick="ButtonSave_Click" />
                                <asp:Button ID="buttonCancel" runat="server" Text="Cancel" CssClass="buttonstyle"
                                    OnClick="ButtonCancel_Click" />
                            </td>
                        </tr>
                    </table>
                </div>
            </li>
        </ul>
    </fieldset>
</asp:Content>
